from app.view.user import api
from app.view.user.admin import UserGroupApi, GroupCreate
from app.view.user.role import UserLoginApi, ResUserApi, UserListApi, UserRegister

api.add_resource(UserLoginApi, '/user/login')  # 登录
api.add_resource(ResUserApi, '/user/res_user')  # 用户注册登录
api.add_resource(UserListApi, '/user/list')  # 用户列表
api.add_resource(UserGroupApi, '/user/group/all')  # 用户角色列表
api.add_resource(GroupCreate, '/group/create')  # 用户角色创建和修改
api.add_resource(UserRegister, '/user/register')  # 用户创建和修改
